package doxygenxml.compound;

/**********************************************************************************************
 * Copyright (c) 2001-2020 Liquid Technologies Limited. All rights reserved.
 * See www.liquid-technologies.com for product details.
 *
 * Please see products End User License Agreement for distribution permissions.
 *
 * WARNING: THIS FILE IS GENERATED
 * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten
 *
 * Generation  :  by Liquid XML Data Binder 18.0.5.9988
 * Using Schema: CENSORED
 **********************************************************************************************/

// <summary>
// </summary>
public enum DoxAccessor {
	Retain,
	Copy,
	Assign,
	Weak,
	Strong,
	Unretained;

	// Converts a DoxAccessor enumeration to a string (suitable for the XML document)
	public static String DoxAccessorToString(doxygenxml.compound.DoxAccessor enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		switch(enumValue)
		{
		case Retain:
	    	return "retain";
		case Copy:
	    	return "copy";
		case Assign:
	    	return "assign";
		case Weak:
	    	return "weak";
		case Strong:
	    	return "strong";
		case Unretained:
	    	return "unretained";
		default:
	    	throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxAccessor [" + enumValue.toString() + "]");
		}
	}
	
	// 	Converts a string to a DoxAccessor enumeration
	public static DoxAccessor DoxAccessorFromString(String enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		String enumCollapsedValue = com.liquid_technologies.ltxmllib18.WhitespaceUtils.collapse(enumValue);
		if (enumCollapsedValue.equals("retain"))
			return Retain;
		else if (enumCollapsedValue.equals("copy"))
			return Copy;
		else if (enumCollapsedValue.equals("assign"))
			return Assign;
		else if (enumCollapsedValue.equals("weak"))
			return Weak;
		else if (enumCollapsedValue.equals("strong"))
			return Strong;
		else if (enumCollapsedValue.equals("unretained"))
			return Unretained;
		else
			// ##HAND_CODED_BLOCK_START ID="Default Enum doxygenxml.compound.DoxAccessor"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxAccessor [" + enumValue + "]");
			// ##HAND_CODED_BLOCK_END ID="Default Enum doxygenxml.compound.DoxAccessor"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
	}
}

